#region Using References

using System.Drawing;

#endregion

namespace Beaker.OpenCube.Textures
{
	public interface IImageCache
	{
		/// <summary>
		/// Gets the image with the relative path from the cache
		/// </summary>
		/// <param name="relativePath">The relative path of the image to get</param>
		/// <returns>The image in the cache or <c>null</c> when it was not found in the cache</returns>
		Bitmap GetImage( string relativePath );

		/// <summary>
		/// Add the given image to the cache
		/// </summary>
		/// <param name="relativePath">The relative path of the image</param>
		/// <param name="image">The image to cache</param>
		void AddImage( string relativePath, Bitmap image );
	}
}